
import authDirective from './directives/authDirective'
import showNoAuthDirective from './directives/showNoAuthDirective'
import dragModalDirective from './directives/dragModalDirective'
import clickOutside from './directives/clickOutside'

const directives = { 
  'userAuth': authDirective,
  'showNoAuth': showNoAuthDirective,
  'dragModal': dragModalDirective,
  'clickOutside': clickOutside,
}

export default {
  install(Vue) {
    Object.keys(directives).forEach((key) => {
      Vue.directive(key, directives[key]);
    })
  }
}